#include "../Base.h"



void sysCallTest(
	_In_ unsigned int SystemCallIndex,
	_Inout_ void** SystemCallFunction) {



	if (*SystemCallFunction == (PVOID)GetUserGetForegrounWindow()) {

		*SystemCallFunction = MyNtUserGetForegroundWindow;

	}

	if (*SystemCallFunction == (PVOID)GetUserFindWindowEx()) {

		*SystemCallFunction = MyNtUserFindWindowEx;

	}

	if (*SystemCallFunction == (PVOID)GetNtUserQueryWindow()) {


		*SystemCallFunction = MyNtUserQueryWindow;

	}

	if (*SystemCallFunction == (PVOID)GetNtUserWindowFromPoint()) {
		*SystemCallFunction = MyNtUserWindowFromPoint;
	}

	if (*SystemCallFunction == (PVOID)GetNtUserBuildHwndList()) {
		*SystemCallFunction = MyNtUserBuildHwndList;
	}




}



VOID EtwHookTest()
{

	initHook();
	IfhOn(sysCallTest);
}

VOID UnEtwHook() {

	IfhOff();
}